package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class IntegralDetailTableDef extends TableDef {

    public static final IntegralDetailTableDef INTEGRAL_DETAIL = new IntegralDetailTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn CON_ID = new QueryColumn(this, "con_id");

    public final QueryColumn TITLE = new QueryColumn(this, "title");

    public final QueryColumn INTEGRAL = new QueryColumn(this, "integral");

    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CON_ID, TITLE, INTEGRAL, CREATE_TIME};

    public IntegralDetailTableDef() {
        super("rc", "integral_detail");
    }

    private IntegralDetailTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public IntegralDetailTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new IntegralDetailTableDef("rc", "integral_detail", alias));
    }

}
